﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LogoManager.aspx.cs" Inherits="Card.Manager.LogoManager" %>
<%@ Import Namespace="Card.Utility" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Logo管理</title>
    <link href="Css/Style.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <table class="TB">
        <tr>
            <td class="TD_Input_Text">
                名称：
            </td>
            <td  class="TD_Input">
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            </td>
            <td class="TD_Input_Text">
                类型：
            </td>
            <td class="TD_Input" >
                <asp:DropDownList ID="dropType" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td colspan="4" align="center" class="TD_Input">
                <asp:Button ID="btnQuery" runat="server" Text="查询" onclick="btnQuery_Click" />
                <input id="btnAdd" type="button"  onclick="javascript:window.location='LogoEdit.aspx';" value="添加" />
            </td>
        </tr>
        <tr style=" display:none;">
            <td colspan="4" class="TD_Input">
                <span style="float: right">显示条数：
                    <asp:TextBox ID="txtRecords" runat="server" Text="50" MaxLength="3" CssClass="Input_Short"></asp:TextBox>
                </span>
            </td>
        </tr>
        <tr>
            <td colspan="4">                
                <asp:Repeater ID="rptList"  runat="server">
                    <HeaderTemplate>
                        <table class="TB">
                            <tr class="TB_Header">
                                <td>
                                    ID
                                </td>
                                <td>
                                    类型
                                </td>
                                <td>
                                    名称
                                </td>
                                <td>
                                    图片
                                </td>
                                <td>
                                    操作
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="TB_Item">
                            <td>
                                <%# Eval("ID") %>
                            </td>
                            <td>
                                <%# Eval("TYPE_CODE") %>
                            </td>
                            <td>
                                <%# Eval("NAME") %>
                            </td>
                            <td>
                                <img style="width: 50px; height: 50px;"  src='<%# ImageUtilty.GetLogoPath(Eval("IMAGE").ToString()) %>' />
                            </td>
                            <td>
                                <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="DELETE" CommandArgument='<%# Eval("ID") %>' OnClientClick="javascript:return confirm('确认删除?');" Text="删除"></asp:LinkButton>|<a
                                    href="LogoEdit.aspx?id=<%# Eval("ID") %>">修改</a>
                            </td>
                        </tr>
                    </ItemTemplate>
                    <AlternatingItemTemplate>
                        <tr class="TB_Alter">
                            <td>
                                <%# Eval("ID") %>
                            </td>
                            <td>
                                <%# Eval("TYPE_CODE") %>
                            </td>
                            <td>
                                <%# Eval("NAME") %>
                            </td>
                            <td>
                                <img style="width: 50px; height: 50px; border:0px;" src='<%# ImageUtilty.GetLogoPath(Eval("IMAGE").ToString()) %>' />
                            </td>
                            <td>
                                <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="DELETE"  CommandArgument='<%# Eval("ID") %>'  OnClientClick="javascript:return confirm('确认删除?');"  Text="删除"></asp:LinkButton>|<a
                                    href="LogoEdit.aspx?id=<%# Eval("ID") %>">修改</a>
                            </td>
                        </tr>
                    </AlternatingItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
        <tr>
            <td colspan="4">
             <baf:UrlPager ID="pager" CssClass="pagination" runat="server"  PageSize="20" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
